Avoid warning when loading 'go-ts-mode'
authorEli Zaretskii <eliz@gnu.org>
Sat, 29 Mar 2025 10:36:02 +0000 (13:36 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sat, 29 Mar 2025 10:36:02 +0000 (13:36 +0300)
* lisp/progmodes/go-ts-mode.el (treesit-ready-p): Silence the
warning if the gomod language library is not installed.
(Bug#77213)

lisp/progmodes/go-ts-mode.el

index eb5b93008ebf5aa36225c95cef35267db6250790..c233a7222fceae63aed774bd0eb862b7dbb965c4 100644 (file)
@@ -476,7 +476,7 @@ what the parent of the node would be if it were a node."
 
 (derived-mode-add-parents 'go-mod-ts-mode '(go-mod-mode))
 
-(if (treesit-ready-p 'gomod)
+(if (treesit-ready-p 'gomod t)
     (add-to-list 'auto-mode-alist '("/go\\.mod\\'" . go-mod-ts-mode)))
 
 (provide 'go-ts-mode)